package com.sumainfor.pc.market.controller.tenant;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.market.service.tenant.impl.ToRenewPactService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * <p>
 * 根据合同编号查询当前合同是否存在续租合同
 * <p>
 *
 * @author: zc
 * @create: 2019-10-30 18:28
 **/
@Controller
@RequestMapping("/tenant/key/ToRenewPact")
public class ToRenewPactController {

    @Autowired
    ToRenewPactService toRenewPactService;

    @ResponseBody
    @GetMapping("/getRenewPact")
    public JsonResult getRenewPact(@RequestParam Map<String,Object> params){
        return toRenewPactService.getRenewPact(params);
    }

}
